using System.Web.UI;
using System.Web.UI.WebControls;

namespace SouthernLand.Common.Untilities
{
    [ParseChildren(true)]
    public class LinkButton2 : LinkButton
    {
        private string _cssClass = "";

        public string ResourceName { get; set; }

        public string StyleClass
        {
            get { return _cssClass; }
            set { _cssClass = value; }
        }

        protected override void CreateChildControls()
        {
            //EnableViewState = false;

            if (StyleClass == "")
                CssClass = "LinkButton";
            else
                CssClass = StyleClass;

            if (ResourceName != "")
            {
                Text = ResourceManager.GetString(ResourceName);
            }
        }
    }
}